package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

// default package



/**
 * Preference entity. @author MyEclipse Persistence Tools
 */

public class PreferenceDTO extends java.lang.Object implements IsSerializable {


    // Fields    

     private long id;
     private PreferenceTypeDTO preferenceType;
     private LecturerDTO lecturer;
     private CalendarDayDTO calendarDay;
     private Integer startTime;
     private Integer duration;


    // Constructors

    /** default constructor */
    public PreferenceDTO() {
    }

    
    /** full constructor */
    public PreferenceDTO(PreferenceTypeDTO preferenceType, LecturerDTO lecturer, CalendarDayDTO calendarDay, Integer startTime, Integer duration) {
        this.preferenceType = preferenceType;
        this.lecturer = lecturer;
        this.calendarDay = calendarDay;
        this.startTime = startTime;
        this.duration = duration;
    }

   
    // Property accessors



    public PreferenceTypeDTO getPreferenceType() {
		return preferenceType;
	}


	public void setPreferenceType(PreferenceTypeDTO preferenceType) {
		this.preferenceType = preferenceType;
	}


	public LecturerDTO getLecturer() {
		return lecturer;
	}


	public void setLecturer(LecturerDTO lecturer) {
		this.lecturer = lecturer;
	}


	public CalendarDayDTO getCalendarDay() {
		return calendarDay;
	}


	public void setCalendarDay(CalendarDayDTO calendarDay) {
		this.calendarDay = calendarDay;
	}


	public Integer getStartTime() {
        return this.startTime;
    }
    
    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public Integer getDuration() {
        return this.duration;
    }
    
    public void setDuration(Integer duration) {
        this.duration = duration;
    }


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}
   
	public String toLabel() {
		String result = "" +
			"[ " + PreferenceDTO.class + "]" +
			"preferenceType: " + preferenceType +
			", lecturer: " + lecturer +
			", calendarDay: " + calendarDay +
			", startTime: " + startTime +
			", duration: " + duration; 
		return result;
	}
}